package com.zld.smarket.service;

import com.zld.smarket.pojo.Goods;
import com.zld.smarket.result.ResponseData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface GoodsService {
    ResponseData findList(Integer page, Integer limit);

    Integer addGoods(Goods goods);

    Integer deleteById(Long[] ids);

    ResponseData search(String s,Integer page, Integer limit);

    ResponseData updateById(Goods goods);

    Long selectbyno(Long goodsNo);

    List<Goods> selectAll();

    ResponseData upimg(MultipartFile file, HttpServletRequest request);
}
